#include "mslog.h"

int main() {
	msl_t logObj;
	msl_init(&logObj, NULL);

	int a = 10;
	int i = 100;
	while (i--) {
		if (i < 60) {
			msl_set_timefmt(&logObj, MSL_TIME_DETAL);
		}
		if (i < 30) {
			msl_set_timefmt(&logObj, MSL_TIME_ALL);

		}
		msldebug(&logObj, "login i = [%d]\n", i);
		mslinfo(&logObj, "login i = [%d]\n", i);
		mslwarn(&logObj, "login i = [%d]\n", i);
		mslerr(&logObj, "login i = [%d]\n", i);
	}
	unsigned char arr[32];
	mslmemdump(&logObj, MSL_DEBUG, arr, 32, "login a = [%d]", a)

	msl_release(&logObj);
	return 0;
}
